package org.fitweb.examples;

import org.fitweb.runners.ParameterisedSuiteRunner;
import org.fitweb.runners.Parameterized;

import java.util.Collection;

/**
 * Copy this class to your own project and change the constants.
 */
public class ExampleTestSuite extends ParameterisedSuiteRunner {
    private static final String TEST_RESULTS = "out/test-results";
    private static final String TEST_SOURCE = "tests";

    @Parameterized.Parameters
    public static Collection<Object[]> fitTests() {
        return ParameterisedSuiteRunner.findTestsIn(TEST_SOURCE);
    }

    public ExampleTestSuite(String testPath) {
        super(testPath);
    }

    @Override
    protected String outputDirectory() {
        return TEST_RESULTS;
    }

    @Override protected String inputDirectory() {
        return TEST_SOURCE;
    }
}
